#ifndef EXPORTDLG_H
#define EXPORTDLG_H

#include <QDialog>
#include <QXmlStreamWriter>

class QLabel;
class QLineEdit;
class QPushButton;

class ExportDlg : public QDialog
{
    Q_OBJECT

public:
    ExportDlg(QWidget *parent =0);

private slots:
    void SearchFile();
    void SaveToFile();

private:
    void paintEvent(QPaintEvent *);
    void CreateWidget();
    bool WriteXml(const QString &fileName);
    void WriteItem(int index, QXmlStreamWriter *xmlWriter);

    QLabel *hintLabel;
    QString filePathStr;
    QLineEdit *filePathEdit;
    QPushButton *openFileBtn;
    QPushButton *exportBtn;
    QPushButton *cancleBtn;

};

#endif // EXPORTDLG_H
